package cn.terminus.data.customer.custombusinessinfo.mapper;

import cn.terminus.common.customer.bean.custombusinessinfo.dto.*;

import java.util.List;

/**
 * (CustomBusinessInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:18:35
 */
public interface CustomBusinessInfoMapper {

    /**
     * 新增
     *
     * @param dto
     * @return
     */
    Integer add(CustomBusinessInfoNewDto dto);

    /**
     * 更新
     *
     * @param dto
     * @return
     */
    Integer update(CustomBusinessInfoNewDto dto);

    /**
     * 删除
     *
     * @param dto
     * @return
     */
    Integer delete(CustomBusinessInfoDeleteDto dto);

    /**
     * 查询
     *
     * @param dto
     * @return
     */
    List<CustomBusinessInfoResultDto> query(CustomBusinessInfoQueryDto dto);

    Long getBussinessId(Long id);
}
